@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* =================== RESET =================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  overflow-x:hidden;
  max-width:100%;
  font-family:'Poppins', sans-serif;
  background:#f9f9f9;
  color:#222;
  line-height:1.6;
}

a{
  text-decoration:none;
  color:inherit;
}

h1{
  color:#fff;
}

/* =================== HEADER =================== */

header{
  background:#400080;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 30px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
}

.logo-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:48px;
  height:48px;
  border-radius:50%;
}

.logo-title h1{
  font-size:1.6rem;
  font-weight:700;
}

/* DESKTOP NAV */
.desktop-nav{
  display:flex;
}

.desktop-nav ul{
  list-style:none;
  display:flex;
  gap:25px;
}

.desktop-nav ul li a{
  color:#fff;
  font-weight:500;
  padding:6px 10px;
  border-radius:6px;
  transition:.3s;
  white-space:nowrap;
}

.desktop-nav ul li a:hover{
  background:#fff;
  color:#400080;
}

.nav-active{
  background:#fff;
  color:#400080 !important;
}

/* =================== HAMBURGER =================== */

.menu-btn{
  display:none;
  font-size:2rem;
  cursor:pointer;
  color:#fff;
  margin-left:auto;
}

/* =================== MOBILE NAV =================== */

.mobile-nav{
  position:fixed;
  top:0;
  right:0;
  width:70%;
  height:100vh;
  background:#400080;
  transform:translateX(100%);
  transition:.35s ease;
  padding:25px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.mobile-nav.show{
  transform:translateX(0);
}

/* MOBILE LOGO BAR */
.mobile-nav-header{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-nav-header img{
  width:45px;
  height:45px;
  border-radius:50%;
}

.mobile-nav-header h2{
  font-size:1.2rem;
  color:#fff;
}

/* CLOSE BUTTON */
.close-btn{
  margin-left:auto;
  font-size:2.4rem;
  font-weight:600;
  cursor:pointer;
  color:#fff;
  transition:.2s;
}

.close-btn:hover{
  color:#ffdddd;
}

/* MOBILE LINKS */
.mobile-nav ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.mobile-nav ul li a{
  color:#fff;
  font-size:1rem;
  padding:12px;
  border-radius:6px;
  font-weight:500;
  transition:.3s;
}

.mobile-nav ul li a:hover{
  background:#ffffff22;
}

/* HIDE MOBILE ON DESKTOP */
@media(min-width:769px){
  .mobile-nav,
  .menu-btn{
    display:none !important;
  }
}

/* SHOW HAMBURGER ON MOBILE - HIDE DESKTOP NAV */
@media(max-width:768px){

  .desktop-nav{
    display:none;
  }

  .menu-btn{
    display:block;
  }
}
@media(max-width:768px){
  nav{
    width: 75%;
    max-width: 340px;
  }
}
@media(max-width:768px){
  html, body{
    -webkit-text-size-adjust: 100%;
  }
}


/* =================== HERO =================== */

.hero{
  width:100%;
  position:relative;
}

.carousel{
  width:100%;
  height:80vh;
  overflow:hidden;
}

.carousel-track{
  display:flex;
  transition:.5s ease-in-out;
}

.carousel-track img{
  width:100%;
  object-fit:cover;
  flex-shrink:0;
  filter:brightness(80%);
}

.hero-content-below{
  text-align:center;
  margin:25px 0;
  font-size:2.2rem;
}

.home-title{
  color:#3aa6b9;
  font-weight:700;
}

/* MOBILE HERO FIX */
@media(max-width:768px){
  .carousel{
    height:35vh;
  }

  .carousel-track img{
    height:35vh;
    filter:none;
  }

  .hero-content-below{
    font-size:1.5rem;
  }

  .home-title{
    font-size:1.7rem;
  }
}

/* =================== CONFERENCE TEXT =================== */

.table-section{
  max-width:1200px;
  margin:40px auto;
  padding:0 20px;
  text-align:justify;
}

.table-section h2{
  text-align:center;
  margin-bottom:20px;
  color:#400080;
  font-size:1.9rem;
  font-weight:700;
}

/* =================== TABLE =================== */

table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:30px;
  font-size:.95rem;
}

th,td{
  border:1px solid #ddd;
  padding:10px;
  text-align:center;
}

th{
  background:#400080;
  color:#fff;
}

tr:nth-child(even){
  background:#f2fbf8;
}

/* =================== VENUE =================== */

.venue-container{
  display:flex;
  gap:2rem;
  margin-top:3rem;
}

.venue-container img{
  width:500px;
  max-width:100%;
  border-radius:8px;
  box-shadow:0 0 10px rgba(0,0,0,0.3);
  border:1px solid #000;
}

@media(max-width:768px){
  .venue-container{
    flex-direction:column;
    gap:1rem;
  }
}

/* =================== PREVIOUS CONFERENCES =================== */

.previous-title{
  text-align:center;
  font-size:1.3rem;
  font-weight:600;
  margin:20px 0 10px;
}


/* DOWNLOAD BUTTON */
.download-btn{
  display:block;
  background:#3aa6b9;
  color:#fff;
  padding:10px 18px;
  border-radius:6px;
  font-size:.95rem;
  font-weight:500;
  text-align:center;
  margin:30px auto;
  width:fit-content;
  transition:.3s;
}

.download-btn:hover{
  background:#2b8190;
}

/* =================== FOOTER =================== */

footer{
  background:#400080;
  color:#fff;
  padding:40px 20px;
  margin-top:40px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  justify-content:space-between;
}

.footer-box{
  flex:1 1 200px;
  min-width:200px;
}

footer .copyright{
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.3);
  padding-top:10px;
  margin-top:20px;
  font-size:.85rem;
  opacity:.8;
}

/* MOBILE FOOTER */
@media(max-width:768px){
  .footer-container{
    flex-direction:column;
    text-align:center;
    gap:10px;
  }
}

/* =================== SCROLL BTN =================== */

#scrollTopBtn{
  position:fixed;
  bottom:30px;
  right:20px;
  width:45px;
  height:45px;
  background:#000;
  color:#fff;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:21px;
  cursor:pointer;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:.3s;
}

#scrollTopBtn.show{
  opacity:1;
  visibility:visible;
}

#scrollTopBtn:hover{
  background:#5e00bf;
  transform:translateY(-3px);
}

/* =========== MOBILE MENU HEADER =========== */

@media(max-width:768px){

  .mobile-logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .mobile-logo img{
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .mobile-logo h2{
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding-left: 8px;
    white-space: nowrap;
  }

  .mobile-logo .close-btn{
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
    padding: 0 6px;
    transition: .2s;
  }

  .mobile-logo .close-btn:hover{
    color: #ffdddd;
  }
}







.previous-conferences {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.year-dropdown {
  position: relative;
}

.year-btn {
  background: #4b0082;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  width: 340px;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #f3f3f3;
  color: #4b0082;
}

.dropdown-content {
  display: none;
}

.year-dropdown.open .dropdown-content {
  display: block;
}





/* 📱 Mobile view */
@media (max-width: 768px) {

  .previous-conferences {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .year-dropdown {
    width: 100%;
    max-width: 360px;
  }

  .year-btn {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px;
  }

  .dropdown-content {
    position: static;              /* remove absolute positioning */
    width: 100%;
    max-height: 260px;
    margin-top: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    border-radius: 10px;
  }

  .dropdown-content a {
    font-size: 15px;
    padding: 12px 14px;
  }
}









/* Reset counter for each dropdown */
.dropdown-content {
  counter-reset: paper;
}

/* Each paper link */
.dropdown-content a {
  counter-increment: paper;
  position: relative;
  padding-left: 40px; /* space for number */
}

/* Number styling */
.dropdown-content a::before {
  content: counter(paper) ".";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #4b0082;
}


/* Paper hover effect */
.dropdown-content a:hover {
  background: #f3f0ff;          /* light indigo background */
  color: #2c0055;               /* darker text */
  font-weight: 600;             /* slight emphasis */
}

/* Make number darker on hover */
.dropdown-content a:hover::before {
  color: #2c0055;
}



/* Make it clearly clickable */
.dropdown-content a {
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

/* Underline appears on hover */
.dropdown-content a:hover {
  text-decoration: underline;
}





.year-dropdown {
  z-index: 1000;
}

.dropdown-content a {
  line-height: 1.5;
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #c2b7e2;
  border-radius: 10px;
}

.dropdown-content a:hover {
  box-shadow: inset 4px 0 0 #4b0082;
}

.paper-hint {
  font-size: 13px;
  color: #666;
  margin: 6px 12px;
}

.dropdown-content a:hover {
  background: #f4f2ff;
  color: #2b0066;
  font-weight: 600;
  text-decoration: none; /* remove underline */
}


.dropdown-content {
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}




.dropdown-content {
  width: 520px;
  max-width: 90vw;
}

@media (min-width: 769px) {
  .dropdown-content {
    width: 560px;
  }
}
